modified to run demo and vehicle detection