Some Java Docs and some warning fixes