Hi Stig,
There were still a number of return void vs int mix ups, mainly in main(). I fixed those.
Also set a ToUserUnits factor that is either 1 or 25.4 to avoid checking Units multiple places.
This brought it 300 bytes under the 65,536 byte limit
I think you areI'm not a programmer...