Added authentication and better documentation