beginning of csv -> hdf5 script