thermal: core: add a comment describing the main update loop