update readme
Put bloc height extraction in a function