I've been using LaTeX for about 3-4 years now. In that time I've picked up what I've needed as I've needed it, most often by Googling. However, I'd like to learn some more advanced features of LaTeX such as editing or even creating my own class files and bibtex styles. I've worked with some fairly powerful class files before, but I have a tough time understanding the syntax as it's rather obscure.
Does anyone know of a good tutorial (or book) that I can use to learn such advanced features of LaTeX?