Updated comments

added javadoc comments