Add basic_auth, debugging, and docs