Added some useful documentation. Fixes #8.