Fix incorrect variable name.
Fix scoping bug that always operated on last repo.
Add authorization for higher rate limits.