cleaned up code removing all blocks that were depreciated and all extra debugging print statements.