Code consolidation

Download data into csv