I certainly don't understand what the code does. It needs to be heavily commented and include clear explanations for each function, such that a layman (or lawyer) could interpret it. Pasting into chatGPT gave a pretty clear summary of it's purpose and uses, so I imagine that could be automated.