lua: More enhancements/cleanup to example.lua.