[minor] change formatting
Refactor exceptions
Document code, move some functions around
[dist] Version bump 0.1.0