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