Fix calibration matrix to use correct gui size for transformation
All kinds of fixes for calibration, plus lots of debugging because it's still completely broken