- move strings into constants - remove unnecessary interface - fix documentation - improve error messaging