Add lots of docs

First step towards #114
This isn't quite clear... :/