Collated all necessary code from cycinc.c and markovinc.c into par_opt.c, all that remains is to write clocj and averaging logic.