Updated config.ini.dist and moved main functions to loader class