fix an error with merge
parseCSVData function added.

It returns the number of columns in the file and returns the latest date updated in it.
fix error when series has no datavalues
 add new line character at end of header
merging