more code corrections
added computing total amounts in cart