Adding locales, sorting for config, bugfixes