add docstring, get rid of obsolete mkdir command