Document CMath

Don't merge it now, I'll document more functions tomorrow. Just needed some review.
There might be some Doxygen feature to do that.