add .gitignore file and ignore *~ file