public void set(string name, object value, bool justMemory = false)
        {
            name = name.ToLower();
            //chekcs if the configuration is an enum
            ConfItem conf = new ConfItem();

            conf.Set(value);
            conf.justMemory = justMemory;
            confs[name]     = conf;
            WriteFile();
            NotifyConfObservers(name);
        }
        public ConfItem get(string name, object defaultValue)
        {
            name = name.ToLower();
            //verify if the ram contains the variable
            if (confs.ContainsKey(name))
            {
                return(confs[name]);
            }
            else
            {
                //load file to ram
                ReadFile();

                //recheck the ram
                if (!confs.ContainsKey(name))
                {
                    ConfItem newConf = new ConfItem();
                    newConf.Set(defaultValue);
                    confs[name] = newConf;
                    WriteFile();
                }
                return(confs[name]);
            }
        }