Added some Java Docs, cleanup, and some variable renaming.

Just some cleanup and documentation of some things as well as renaming of some variables to appropriate names.