Some log counter fixes
Removed SPI debugging code
More work on the log counters