Remove extra languages. Updated handling for user preferences and MainAppClass