adding javadoc comments