Giving `create_file` a `tempdir` argument

Needed to put a `tempdir` argument in `create_file`