Some minor beauty fixes
move the counting out of loop
added auth to gitignore