I would try unplugging the MAF, then see if it runs better to rule it out. If the replacement MAF was from Cardone, there's a good chance it could be bad, as they are bad quality. The two codes other than the MAF could be caused from a vacuum leak, so you may want to check your underhood vacuum lines for cracks.