Moving csv cookbook to common place.
Minor changes and fixes. Code formatting.