Added multi-layer calibration. Also improved Ratio Check function.

Please do not touch findBox_r... ever... I kill you!