Refactored code, added/changed javadocs, and created test for getAccessToken().