Fixed Gitignore
Fixed error in loop