Added sum value calculator, corrected categories management