getSupportedLanguages function. Closes #2