open output file for writing
Merge pull request #59 from hoserdude/master

open output file for writing