Simplify while loop on calibrate
Changed load image from mask to reliable map for calibration
Added readme description of nsamples