halfway through changing everything to compile in C++.  Nothing works right now