more comments

added breakdown comments to the more complex functions