Added reading writing contours