Add more description on Exception and documentation for authentication

It's just some minor changes. Hope that can avoid someone else to look at the code to understand how it works.