重写并完善注释

Signed-off-by: Harry Chen <373685963@qq.com>