change to env vars
fixed lying bugs, also put in tests for vars
Merge branch 'master' of github.com:otree-org/oTree