changed MakeVars and created cpp templates in src folder