Added javadoc to documentation.