Add comments to various important functions/queries