Patch for issue #32 and related. updates device state to values stored in flash
Merge pull request #33 from IHeartRobotics/keyvalupdate

Patch for issue #32 and related
issue #11: improve log format: Hall-effect sensor, initial fix
Also add counts and iterval to log (discussed in issue #25)
fixing some logic errors, now most everything should work.
Cannot test the magsensor though...
Merge branch 'issue11' into devel