Code cleanups 2

Some minor code cleanups
* compression of null pointer checks in JDK 1.6 compatible way
* some small JavaDoc for a newly added interface
* smaller cleanups