added md5 hashing of shared secret value, to gen 16 byte key. Also added self keyword in connector