remove some dead code
add comment
cache_calc_blocks; tidy up the calculation of nr blocks