Added Error messages, modified Encryption algorithm to take into account packet signing