Rough setup, translated hacked sandbox version
Fixed: refactoring errors, requires
Refactoring tested, basics work
mapOffsets added to main lib. libVars formed. Refactoring done.