Add WriteCsvToWriter and some godoc comments.