added rank calculation and remove 0 probabilities
changed initial entity rankings