Added stats.

Involved modifying the switching timing so that the current reading can
be synchronized with the switching of the channels.  Still need to
figure out how the current readings correspond to actual currents.