Fix adding and removing of keys in inifile, fix typo