javadoc updated

Added comments for javadoc