added support for Oriented Bounding Boxes; other minor changes