box_detection: extended action definition; added Box type; several modifications.