Fleshed out the Lua library scripts and documented them.