standardise parameter names, include userinfo querying function and associated error handling
Add function for retrieving categories from a page.