Changed svg export.

* fixed bug in bounding box computation
* finished implementation of class BoundingBox
* changed svg export to avoid negative coordinates