Commented code and refactored oauthcontroller with dependency injection