Remove file backups and update .gitignore to include '*~'.