Fix GUI table water over flow bug. Correct flow computation using
pressure. Fix history array boundary bug when computing integral.
However, the PID parameter needs to be improved.