Data transformation: Added code to check the existense of directories for transformed data and create them, if necessary.