Added documentation.

Fixes #11