updated csv_to_orderlist to return the correct data structure