Accept output directory
Merge pull request #7 from tschaub/out-dir

Accept output directory.