added tracking of the gap in unbounded faces, this seems to have been the missing ingredient, also removed some debug code