parse csv file, structure data