Added secure comms to session key to fix problem with flagging a connection as valid, tidied up the log messages, fixed up incorrect references to self