Merge "Sensor batching. Changes to the native code." into klp-dev