added pedestal subtraction in the calibration runs, corrected the polarity of the pulses