Here's a tutorial I've been meaning to write for a while but just found some time. Hope it helps and please let me know if I've made any errors or typos: Tutorial
Really nice to see people writing tutorials!
Just a small note, it's actually not recommended that you edit template files directly. The better approach is to create a package and override the template with your own, as explained here.
Thanks for the heads Sacha I made sure to update it.