Added total price of items to cart.
Also added error checking for invalid carts and the ability
to delete a cart.