Added javadoc to the classes.