Add documentation. Fixes #3