Added access token request function and updated demos