bug fixes, added example of usage own oauth client library