cleaned up flags, included enabling and disabling of accelerometer and gyroscope bias flags