Added output quantity
Return error if product or category not exist
Added editProduct()