Refactored data collection code. Fixed car mode detection. Threat display UI fixes. Misc bugfixes