Added Type checking to KeyExchange
Deprecated DH methods in KeyExchange
Fixed execption handling in JFKExchange