Integration of accelerometer code with the transient(for acceleration) and motion (for g values) implementations to the Bluetooth working code.