Changes for cpp file generation to work - removed 'template_dir', and added output_dir paths