added setRankingMode function and updated readme with paging/caching example