Rename mean_func properly
Move model summary to an interface, add tests