read data from .csv

thanks @ramnathv for suggestions