add mkdirp option to create directory structure. closes #1