finished basic mergeZContours and low priority placeholders for contours and attributes