Added code to create a directory structure if the save file location does not exist.