added comments to java classes