Improve handling of errors
Update dependencies
Update readme
Release 1.0.2