added a flag for global obd2 enable/disable; updated API and unit tests