fix out by 1 in corners_2_full_lut, and some misleading debug code