Wrote unit tests for KeyExchange and documented KeyExchagne and KeyExchType.