improved error handling
0.1.1
Automatically rewritten for npm.