Add documentation.

Fixing #1.