add comments and rename a few variables
add comments and rename a few variables

wikipathways/wikipathways-api-client-js,wikipathways/wikipathways-api-client-js,wikipathways/wikipathways-api-client-js,wikipathways/wikipathways-api-client-js