adds support for single output directory. Closes #67