Rough idle and flutter on 1995 Nissan 200SX

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
I have a 95 nissan 200SX 1.6 automatic and it idles kinda rough and if i give it too much gas it flutters like i hit the rev limiter but if i easy into it it does fine. i took off the distributor cap and cleaned in up and now it idles better but not perfect. what could be the problem?
(1) Answer
(1) Comments
Check the sparkplugs for wear and gap, cracks, leakage, etc. Also check the sparkplug wires, they should have about 5kOhms/foot resistance and be in good physical shape, and not arcing to the head through the wires or plug boots.
Ok I checked all that and replaced its all as well. I have noticed that when its cold it runs just fine but as it heats up it starts to run rough and I think that the fluttering when I give it alot of gas is a different thing all together. I have been looking all around online and another person had the same problem and he said it was a broken bolt in the distributor and that fixed his problem but i have checked mine and there did not seem to be a problem????? any other advise?