Better error handling. Add first test.
Release 0.0.2