Angus, Scotch, Tweaker, thank you very much for the help. I haven't had that much time to do anything with the truck lately. It actually was driving fine for a week or so after I tightened the dist cap. I will look in to getting a new gasket. I tried to get the truck going the last few days and could barely get down the driveway.
The truck had this issue with the previous owner and the computer was repaired about a year and a half ago, the problem continued.
I will look into the other suggestions too.
I checked the air filter today and changed it. The filter looked pretty full, and it seems there was a mouse hanging out in the air box, he left a bunch of acorns and fluff. I wonder if all that contributed to the problem. I have to test it some more in the daytime, but it didn't stall while test driving around the property a little, and I et it idle for a while and it didn't die.
I was trying to undo the electrical connector to the MAF, but couldn't figure out how to do it. I didn't want to damage it by forcing it. How do I get it apart?