Sped up display of demo to be about 4 seconds.

Modified staging time to be proportional to screen size being staged.
Fixed some warnings.
Tidy some comments
Rename pages to segments
Some tidies. update thermo demo for new constructor and looping model.
Added profiling in.
Adding in profiling.