Adds write to CSV function if url ends in .csv. Same number of blank fields in each row as actual fields; something with csv parsing...