ARIMA

Includes changes from code review.