chore: refactor variable names
chore: refactor variable names

* Use better naming of variables and make sure documentation is consistent with function definitions

* Use event instead of data
GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples