Code with javadocs

javadocs and comments