Tidy up for rdoc. Also dont include tolerance in detected boundary