specifies creation of directory if !exists
- added try catch for creation of directory, in case of an invalid path specified
- added specification to documentation