Major bug fixes in t_extreme and generate_boundary.