added javadoc comments to file