重新整理并添加部分注释

Signed-off-by: ralphya0 <ralphya0@foxmail.com>