when the lights on, get it scanned, its the key to your problems.

the maf test, you unplug it, car off. then start it. if it idles and runs better with the maf unplugged its bad.