BelleBoom's Addon Template has a nice, simple Secure Template example - it's documented and I found it easy to develop a mod based on it...
Download/info is here
http://belleboom.googlepages.com/bellemaison
Add that to the WoWWiki stuff (above) and you have almost all you need to know...