removed dependency on flexsurv, removed some transformation functions, generally cleaned up