add some comments to make the code more readable

add some comments to make the code more readable