Fixed the KL divergence calculation (from ratio of logs to log of ratios) + Now the decoding algorithms correctly return the list of best states instead of their indexes.