Better version of genRecCSV()
- now includes 'system' as a parameter in the output