Add some basic javadocs
Fix compile warning about java source version in unit tests.