Fixed AddLanguage and added more documentation