Switched segmented(...) function to take a main effects model before finding temperature breakpoints.

Also create a cooling effect exhaustion ceiling.