add detection functions
clean up
apply stash
add getAccXYZ() with index
implement state detection
implement shake detection on XYZ - #61
test shake detection - fixes #61
update Moti API call