c++ification and extension to two markers

I'd put this at the top of the .cpp and make gPatt and gPatt2 pointers or put this class in its own header