Fix several issues with createFilesAndDirectoriesAtPath: method
Add logging for writeFileDataForObject: method