add some comments to explain code for #878