(doc) Finish documentation.

Do not merge this until #49 has been merged. It will need rebasing.