Basic accelerometer alarm code working.
Merge remote-tracking branch 'origin/fred' into fred