fix different percentile values for detection and correction

. reset grid file reading position
. started the development of the tolerance method (temporary changes in
effect)