Added error messages on data decryption
Fixed compilation error