Documentation

Adds docstrings and a first draft of a user manual.
There are a bunch of problems just like this. I'll fix tonight. Thanks :)