Update csv reader and writer