-z option at cli now controls whether an extra point at 0ch=0keV is added to calibrations.
bug in reading of calibration parameters fixed.