code to read data set from a file and put into proper format