[Doc] Add documentation for some functions.