Visibility of bounding boxes can be toggled by 'B'. Changed some typedefs.