Updating some debug functionality and fixes to some bounding box bugs