reformat cbox_side routine with bbox_side style, more comments