Fix some things:

 - Replaced some comments with docstrings
 - Fixed a typo in call to `startswith`
 - raise needs to be passed an Exception rather than a str
Bump version