put ping detection in correct place
initial state tracking code
convert main test sketch to use new functions & make volume up send a released straight away (perhaps fixes issue where my audio receiver goes up 3 steps, yet to test)