The book uses OnLoad script to get some actions done when the addon is loaded. In my project I'm using just Lua, no XML, and can't find in the book an alternative to do the same actions without OnLoad (as it only works with XML). Hope this helps as feedback!