Made the gray-scanner 95% functional. It now handles the full data range for high-res gray codes using unsigned-16 Mats