add .gitignore, fix bugs(search, update)