Added parameters to initializeTWI for the gyro and accelerometer