added code to display perplexity for the data that is decoded