changed how we're creating bounding box and fixed an error
removed diagonal line for bounding box. also cleaned up bounding box code