critical bug fix in category_url extraction, attempting to add multithread framework, tidying up