Add some documentation. Fixes #1