Added javadocs to classes and methods.