2006 Ford Ranger, lack of power and rough idling, what could be the problem?

I have a 2006 Ford Ranger manual 4 x 4 sport, with 160,000 km (100,000 miles) that I bought back in August. It ran well until today. On my way to work, I drove a few blocks when I noticed when I accelerated there was little power, and it was idling rough. I drove it back home and noticed there was this black soot coming out of the exhaust. I can't have it seen until the 2nd, so I'm just looking for any insight on what the problem can be.

Check for trouble codes. The truck is likely running rich, too much fuel in the chamber. Injectors could be bad or MAF sensor is bad. Can also be a vacuum leak.

Check all your vacuum hoses.
If the CEL is lit go to an auto parts store and have the codes read.
If you get a MAF sensor code check the wiring harness and if it looks ok put a MAF sensor on it.