Fixed script to write output as .txt
Merge https://github.com/MatticusCaesar/ProgrammingAssignment3