Fixed bug in AddCategory method and updated methods for DeleteCategory