Restructured layout of classes, refactored mod sub-classing, commented classes.