In create_experiment, added "dir" keyword argument to save the files in a specified directory.