Add some docs to math library