Updated documents and comments in some functions.

Signed-off-by: ban.hiroshi <ban.hiroshi@gmail.com>