Add templit function.
Avoid wasteful table acrobatics. Shorten variable names. Split conditional into lines.
Avoid wasteful table acrobatics. Split conditional into lines.
Move C part of the module into /src.