minor fixes + added accel&gyro init