Added function to add time series to a data set

 + some test code to see if it works