#10 Clarified output messages and changed when output file is created

The output file is now created in the initializeOutputFile method so
the output file object is only created once.