Changed output formatting to output.txt