Added xml config file and some parsing methods