update readme
improve error handling
add comments
increase version number to 2.1