added bounding box for objects, and function to calc them