Normy I'd recommend taking a look at ace as it simplifies alot of the more tedious things that every addon has to do.
Also in the dev kit, currently available at
www.wowace.com there is a few examples that might help you out.
Let me know if you need any help understand ace.