Added automatic value calculation when setting or adding the amount of a Category object. Added value calculation for the upper half of the block categories.