changed input, ouput path of calibration, corrected mistake, that matlab opens several times