Docs and some light refactoring.
0.4.2