Fix a bad keyword arg in setupRepo call, and add some comments