Updates the authentication mechanism. Fixes up some docs