controller object with access to state module
fixed equation issue when only number entered
Merge branch 'master' into haoxuan
Also, made separate routine setEquationStyle which
is now called by setState.  Not tested, yet.