Document CMath

Don't merge it now, I'll document more functions tomorrow. Just needed some review.
I am not sure about the parameters of these 2 functions.