Added code for the config reading and parsing