updated documentation of bb_detect