Added javadoc to methods