Adding method to get access token. Closes #2