ARIMA

Includes changes from code review.  
not convinced a sort inside a group(,all) does anything .....