readcsv(): new function with acceptance test