adds CategoriesController and Category functions