formatting and minor changes to time_series.py