Add rank to stats & API

:)

*not tested, may fail ... I suppose it doesn't, but not 100% sure*