Welcome to the world of Z31s.

It's a good car and if you take good care of it it will take good care of you.
As far as your problems go, as with any recent used car purchase I would say do a tune-up. Plugs and wires, cap and rotor, air filter, change your oil and coolant also. If you have the time and the capabilities tool and expertise wise, pull the MAF and clean it with electric component spray. They are all supposed to be self cleaning, but in real world situations that is not always the case. Not to mention the cleaning circuit may have gone bad or is weak, it doesn't affect regular MAF performance and so may not show up in a diagnostic. You may also wish to pull out the ECU and run a diagnostic, something may show up. There's a reference sticky at the top of this page for pulling and decyphering diag codes. Get a Haynes or preferably a factory manual. Easy enough to get, there's an FSM sticky at the top of this page as well.
Off the top of my head I would say a few things are probably out of adjustment, like the TPS ,and some things may need to be replaced. Getting to the plugs is a bit harder than other cars, but not impossible, I pulled all mine in 20 minutes. You will need to remove a couple things, actually one thing, to get to the ones on the driver side.