add additional comments

This commit adds a few more comments on the functions used