Added javadoc to relevant classes.