Configurator class used for read and write configuration file