A New Tool to Optimize ICE Performance and Emissions Via 1D Code Coupled with Gas