Adding javadoc documentation.