Reformatted error functions in cesModel.