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