allow for creation of output directory (default true), #7

This should fix the previous pull request-- branched off master, and committed there