Variant parameters (untested)
Some documentation comments
More work on Lua, not complete by any means