everything commented/documented and unused code deleted.