add config parsing bit to clone-repo, also wrap up the init stuff in a run function, call it from main if interactive