added persistent data, repo selection, and some random bug fixes