Added javadoc for each method