Add tests for main object.
Add some documentation.