add gitignore and remove the ~ file

not sure where ~ file is from. Emacs?