Documentation

Adds docstrings and a first draft of a user manual.
Not if we replaced them first with some unique marker. But there has to be a better way of doing this -- I'll research this later.