Added comments to some of the (more stable) JavaScript functions.  Also, added class comment to the Java file that did not have any.