adding .gitignore and *~ pattern