Added Javadocs for most of the relevant classes.