The chemistry in a reef is rather complicated. I'd like to point you to just one article on the whole mess, but there really isn't one.
Here's a whack of articles that will give you both a headache and some great information on reef chemisty. Read them often
http://www.canreef.com/vbulletin/showthread.php?t=21968
HTH.