Update java docs and fix typos, no functional changes