fixed regression in speed of addVars
Documentation updates