test script and (mostly) working tmlanguage