the MAF can fail in different ways most likly causing what you described bogging while reving but can also cause engine to run like crap in general. Another thing to check would be the ignition module forget the proper name but it's mounted on the top T-belt cover. could be weak spark. Do you have a scan tool that you can moniter data?