getting cli --output to be understood
adding test and fixing bug with outdir
Merge pull request #337 from dominicbarnes/output

Getting the CLI to acknowledge the output flag