g.weardec function

Detects whether accelerometer is worn