modified .gitignore and removed ~ file