tried to make it possible to read current heat subroutines, and added some comments along the way