Modified script and added .gitignore