Added javadoc to necessary java files.