Changed output file names and added headings to all files