Added javadoc to some of the classes