added info about authenticating when instantiating
added config method