Add API and a few of comments for doxygen.