updated code to support the use of personal access tokens to avoid the rather low rate limit of the open API