typo bug fixed. dir creation fixed