Wrote some comments, and the authenticate() method that allows for easy authentication.