Added flat file for storing records
Parse records out and write to flat file