catch and display errors
handle some cases better, fix tests
bump version number to 0.2.1