Add docs and remove personal comments.
Refactor test suite.