cleaning up the code a bit, removing comments, and checking the auth method within the did receive auth challenge operation
more cleanup, removed the extra certs and string hash category