Added javadoc for some classes.