1. Double check to make sure you don't have crossed plug wires. Do you have hi-voltage leaks from cables?
2. Vacuum leaks. Isolate as much "vacuum load" from the intake manifold that you can to see if idle improves.
3. Using electronics cleaner, clean the MAF and IAT sensors in the intake air stream.