Patch 1

Hi Thomas,
I've been through the code now, which looks great. I've very quickly looked at the cox.ph model for control (rather than elimination). I think everything makes sense so far.
Bw
Katie