Updated boundary detection docstring
updated docstring for boundary deviation