removed a comment
now bool l for detection
now in cpp form
new thresh for robot