Vr testing

I added basic templating to both the header file and the .cpp file. I am still not sure of the best way to template without having to combine both of these files into one. I believe Martin may know a way to do it though.