Fixed loops
Added .gitignore