added output directory command line

I tested it and it seems to work - can run from directory other than the one containing cmviewer/
Merge pull request #22 from dreiss-isb/patch-1

added output directory command line