Documentation

Adds docstrings and a first draft of a user manual.
Small thing, but can we get rid of this blank line? :)