fixed basic authentiction and added example.