added block temperature calc function
clean up and commenting