Adding documentation and more tests.
Merge pull request #16 from joincamp/master

Adding documentation and more tests.