fixed bugs in ranking where the ranking was actually done regardless of pigeonholing and numerous minor bugs in the rank model, the remnants of the former ranking algorithm