read these over.
OBD-II Trouble Code: P0102 Mass Air Flow (MAF) Circuit Low Input
P0101 Trouble Code - Mass Air Flow (MAF) Circuit Range/Performance Problem
for starters, with car off, unplug the maf, then start it, if it runs better, the maf is bad.
then you can check the wires to the maf plug for broken insulation, if you see bare wire, theres a problem right there. you would need a new maf pig tail. chances are i think you have a bad wires to the maf. i had the same code put a new maf and new pig tail on, been good for 2 years now.
you can also check your fuse box for a blown fuse, this fuse is for the maf as odd as it sounds. under the hood, or in the car. im not sure where it lives.