Added stuff for automatic MWPC calibration - to be tested and modified by the user