fixed bug in shell script and adding gitignore