changed the comments to javadoc