Add LoadFile method to load config from file