Return an error value on error.
Better docstring.
Fixup readme.