Added javadoc documentation