Graph corrections

Corrections on previous commit. The variable demoMode is nog global, as
it is now also used in the function updateGraph();