Using cleanup, documentation, and added a function to be able to update the authentication