Documenting code, minor stylistic changes, dropped some unused classes and depreceated others.