@Fred vS
Unfortunately I have not a programmer, so the source code is not called many things by their right names. I also often "invent" some ways, and then learn from the books they have to look right.
No comments in the code, in the next few days I try to comment out the key points and to describe here on the forum, what is worth paying attention.
ZCAD until more research than complete system. Some of the same things I'm doing differently in different places, that reveal how to make them more convenient and faster