Nope no luck

Thought I had it but nope, Had it idling beautiful but after a while went off again. Started it then after a few minutes it suddenly stopped and on re-start it ran rough ( almost like a motor not getting enough fuel) at no matter what revs.
The two goes with the fuel pump only happens when the engine is hot (running temp)
The bad running seems to happen randomly, and after it, it seems to go to the "cold" running cycle again.(revs high for a while then backs down to normal idle)
I'm thinking one of two things.
1. Is the IAC I bought faulty (all happened after replacing it)?
2. Has my computer stuffed up?