removed dead code
TimeSeriesWriter refactored