Here's some links to the codes you posted:
P0161 - https://www.yourmechanic.com/article...2-by-evan-clay
P0191 - https://www.yourmechanic.com/article...-jamahl-walker
P0102 - https://www.yourmechanic.com/article...by-john-nelson
P0446 - https://www.yourmechanic.com/article...pencer-clayton
First things first. Make sure you have a full charged battery. The fact that it runs at all and doesn't throw a knock sensor code, tells me you did a good job there, don't worry about it. Here's what I would check, in order of importance:
The P0191 - Fuel Rail Pressure Sensor Range Performance. This could be because you have a bad fuel pump. Pull your back seat out. Again videos are out there, easy one man/woman job. Turn the ignition on, not start, just on. You should hear the fuel pump whir for a couple seconds. If not, check for blown fuse, or wiring problems. May just be a bad pump after sitting so long, empty, (corrosion). This would be the first thing I check. No fuel, no go. Once you're 100% sure you have fuel, then get back to me. I have lots of expensive experience with this bugger.
The P0102, is MAF sensor low voltage input. Check to see if the airway to the MAF sensor is clear. (No mice or insects nesting). Perhaps get some MAF sensor cleaner and clean the sensor. Plenty of videos on how to do it online. Pretty easy.
P0446 - Evaporative Emission control system vent control circuit malfunction. Hmmm. This could also be why it won't stay running, though unlikely. Normally when the evap system fails, the car will run, poorly, but it will run. I don't hav e a lot of experience with this type of failure, so I'm not going to try to advise here. Let me study up on it.
The P0161 - is Drivers side rear O2 sensor heater malfunction. Could be a wiring problem, or just a bad sensor. But it wouldn't prevent the car from idling. I'd check this one out later, after you get it to idle on it's own. But again, look at the wiring just to be sure. Mice love wires.
Hope this helps a little. Get back to me if I can be of any further assistance.