Added comments

Additional comments to describe function