Framework and optimisation procedure for flexible parametric survival models. (10th November 2015)