added functions in multiple controllers, fixed the cookbook models, and added an admin controller.