adds sanitzeoffset helper function and removes unused detectedge function
adds sanitzeoffset helper function and removes unused detectedge function

Knape/pinchit,Knape/pinchit,houseofradon/pinchit,houseofradon/pinchit