massive overhaul--documentation to come.