add .gitignore and revert unwanted changes