Added javadocs to nearly all classes and methods.