Add load_config function to read the variables from a config file