If you didn't take it to the mechanic already, I had similar issues when the car was in "fail safe" mode before. Fail safe mode is something that Nissan did to SR engine so you can start, but it will not run properly because the air/fuel ration is jacked. The first time it happened it was a fuel pump going bad. It took me a week of reading the FSM to find out what happened. This time after a two week rebuild, it turned out to be an injector was leaking because of a bad o-ring that we didn't replace. The fail safe mode basically shoots fuel into cylinders twice during the cycle causing engine to run like poop with and acceleration and the ignition timing with be seriously advanced. This will also cause backfiring, black spots to come out of strait pipe, flooding, and serous smell of fuel, even in oil. The fail safe mode in sr20det can happen for several reasons,sensors bad (MAF, CAS), problem in fuel delivery ) injector leaking-fuel pump going out, or boost leak somewhere or coil pack is going bad or not grounded. I wish I would have read the FSM two years ago when we first got the swap.
I am not a mechanic, but just from getting familiar with FSM, I can trouble shoot problems, i have rebuilt 4 SRs, and just got done last week rebuilding my first engine by myself and runs like a champ.
below is link to FSM for SR20DET Black top (the engine portion will work on Red top stuff, because basically the same engine minus the VTC and o2 sensors) Start here in SFM: TROUBLE SHOOTING p207
http://www.nicoclub.com/FSM/240sx/S14-SR20DET.pdf
good luck