Added a couple of tests.
Added some documentation.