added bounding box objects

Not thoroughly tested. Possible floating pt problems etc.