minor updates to var and lex, introduction of engine (parts missing, will not build)