parsing the config file and method for returning the property