Changed loadLangData() to take an object containing optional arguments as a parameter