First I'll give the codes then what you may want to check out.
P0100
Mass or Volume Air Flow Circuit Malfunction
P0300
Random/Multiple Cylinder Misfire Detected
If you are 100% sure that all cylinders are getting proper spark ( especially the one that was wet, #5, then that rules out spark plugs, wires, coil, distributor, rotor & cap ). It is a good idea to test this out to be certain.
Assuming spark is getting to the cylinders, then it sounds like a leaking fuel injector on #5 ( excess fuel in the exhaust may have caused converter & muffler to overheat & burn out? ). You should get that injector changed for sure. You may also want to do a compression test?
You're also getting a MAF error. So, you may also have to replace this. But first check for vacuum leaks from hoses & intake manifold ( one of the first things to always check ). Also, you can check electrical connections under the hood & make sure they are secure. Then, maybe try disconnecting MAF & see how engine runs or clean the MAF and see if that helps.
PS The MAF error might have been set because of excess fuel in #5. So, best to fix cylinder 5 first. Reset codes and check idle. If not ok then check vacuum leaks & MAF out.
http://www.obd-codes.com/trouble_codes/ ... nction.php
Trouble codes give very limited ( basic ) information. Without using obd2 interface to laptop or hooking up to mechanic computer - then it is tougher to diagnose.