Further modifications to allow different api locations. Added show popularity ranking.