fix bug with sum check
fix padding on table
percentages
percentages fixed calculations
fix bug with flag for sum