Refactored trial estimation code. Created accessor functions and print method for trialmodel class