java docs and commenting and some minor stuff