Added methods for reading and writing xml-based config file