Fixed updating data analysis/graph
Changed a few things about how data is updated

Moved checking of threshold change direction into spectrum class (so that it is only done once). Only create dataPlot if thresholds have changed (or not initialised).
Still more bits to change to optimise efficiency