adding a bit of logging and a try/except catch to create_repo
moving logging and some basic setup out of run(), and into preamble