added hasHeader attribute in CsvFileGenerator constructor