Adding functional examples and new OAuth2 flow