Improve stats recording

* Record number of sensors and basic runtime stats
* Simplify logging (increased reliance on stats)