Updates file names and clears out old files.