change materialId and calculation of totals
fix count of blocks and items
add simple death log