Added comments to all the java files