updated custom code to print gyro and accel vals