Added javadoc documentation on methods