Updated java docs and comments