Specified output directory & output file options are added and
tested. Thank Björn Grüning!