Renames and cleans up files