fix .gitignore not to track backup files

It seems number of back-up files exist in the repo. Remove such back-up files and fix .gitignore to ignore such back-up files.