API update: write function for doubles
WIP: modify TimeSeriesValue to store doubles