Whitespace cleanup.
Add Javadocs.
Added testGetValue() and cleaned up serialisation test.
New test classes.
Misc cleanup.
Misc cleanup.