Finished updated Java docs and cleaning code