added jni calls for logging and IMU messages