Refactored outcome model fitting function. Implemented generic functions for handling fitted outcome models. Finished Kaplan-Meier plotting function.