Document CMath

Don't merge it now, I'll document more functions tomorrow. Just needed some review.
Oh, I see. The * in the lines below should be aligned with the first * of the first line with /**. At least, that's how I have always seen it. Not sure if Doxygen is happy with this style as well?