add_lang.sh: added parameters, error-checking