readTimeseries() as array, other small changes