added lua: refactored language definitions