Fix issue with the output file argument

Fixed an issue where the output file argument isn't used.  Also, allowed 'dict' as the second (of 2) arguments.