Added some documentation. Fixes #1.