Documentation

Adds docstrings and a first draft of a user manual.
#85 has been opened for this.