Added functionality to parse config file