Remove commented out code.
Use float division for mean rank.