Changes url for retrieving top tags

Reorganizes the code
Updates API