Updates with outline for ROP changes
Implements partial logic for cumulative sd in ROP.
Updates ROP calculations
Corrects logic in calc_leadtime_sd

Indexes in i, j and horizon were off
Merge branch 'dev'