Fix missing count increment in get_cpu_load, and also add loads of debug stuff