Update the .gitignore and dealed with some mistakes