add error handling [closes #1]
Release 0.2.0