Added header template file option, non-zero file size check