Added option to specify the output file


Fixes #3