Added some unit tests and improved documentation a bit.