Added an option to print a CSV header from variables found in a template