02/09/2014 The program now writes to an output file instead of printing to the screen.