added comments for javadoc