minor clean up and fixes

block size should be adjustable without affecting the results