Modified .gitignore
Improved some code