This Gadget provides some sample files and the Lua API documentation. Just install it and you will have access to those files in the usual Gadget installation area.