Copy of https://code.google.com/p/gocsv/ with some additional changes