For the tach reconnect the blue wire that was attached to the negetive side of the coil.
To pass smog you should be looking for a 14.7 AFR which would be a good clean burn.
The car shutting off when coming off the throttle probably has something to do with your idle air control.
Check your coil with a multimeter. I believe the primary windings (probes on + and - terminals) should be around 1.02 Ohm and the secondary windings (negetive and center) should be between 8.5k and 12.4k. That's just out of memory so the numbers might not be completely right, but they're close. If it checks out have your battery tested. You may have a bad cell.