Improved Javadoc and comments for all classes.