Fix #2: missing end marker and CreateDirectory steps
Merge pull request #3 from ihnorton/fix2

Fix #2: missing end marker and CreateDirectory steps