There are a number of tutorials found throughout the internet... the api is at Wowwiki.com and such....
A good book to start with and worth the read for anyone who wants to write addons is at
http://wowprogramming.com/
Also start with the development package that blizzard has on their site.
good luck