Added Java comments to all functions and classes.