IMPULSE-20 Optionally Write Output to File

Can now write to output file.

Fixes https://github.com/cwgreene/Impulse/issues/20