fixed directory structure for categories and added a base_url constant variable