Fix repository, add support for current turns

Also add config file support.