Cleanup code and docblock for DigestAuthenticate.