made fragents in the OAuth URL truely optional and added retrieveOAuthCode() helper function