does anyone know anything about the cause of erratic idling

i went to start it this morning the idling was very erratic even when revved a bit to 3g and holding it there.. it sounded like it was miss-firing on a cylinder or two. i stopped and started it a few times and raised the revs higher a bit each time, and it seemed to get better and better until the engine was warm... except the engine and the 'pipe with steam above it' lights seemed to stay on for a long time ~3 seconds, and still do.. i cant remember if they used to stay on for that long before..
now when it idles it either drops to 1k rpm or ~500rpm which seems low, if i hold the throttle down a little bit to get it to about 1.5k it drops by itself to about 5-800rpm, and goes up and down continously
is this just the idle motor or something?