added comments to the java files