No doubt a fuller explanation of this code will appear in due course. No doubt.
Disclaimer: I didn't write this stuff. A guy called Mark Pickering did, at my request. (Hi Mark!)
I asked him if I could distribute it and he said fine, no problem.
If you find any errors in this code, it's your problem, not mine. It's unsupported.