Removed .gitignore~ and added temp files section to .gitignore