Split configuration loading in dedicated files, cleaned main.py