add gitignore and restore modified src for pull request