Update readTimeseries.R

added period handling