moved some vars out of main file into ScopeViewer.pde.