Rolled loop for load ramp updating
Corrected enableUpToDate initial value.
Removed unused legacy debug test code
Tidied comments