Moved config around, added -r/--repository option.