more implementation and bug fixes in xbel exporter.