Added some methods to spectrum class

Also updated a couple of variable names to be clearer
Added method to update badCountsThreshold by checking only the readings which might have changed