added checkPath and createDir
Merge pull request #2 from glawson/checkPath

added checkPath and createDir