A Computer Code for S.I. Engine Control and Powertrain Simulation