A bit more documenation and function to the LUA demo script.