Changed the way detections are stored, added plotting function for bounding boxes