wip, refactor file stuff, add config.py, remove repo_file.py