improvements in csv2matrix converter