Added mdi example and completed polygons