Check here to clean the TB and IACV:
http://matrixowners.com/index.php/to...idepics-incld/
You can clean the IACV by spraying throttle body cleaner down the IACV port (small rectangular hole just in front of the butterfly valve in the throttle body), but that will not clean it as thoroughly as the guide shows above. Make sure you have the correct gaskets before you dig into the removal of the IACV. Disconnect the battery after cleaning for about an hour and then reconnect it.
Any check engine lights on? If cleaning that does not fix it, you will have to look for vacuum lines that are loose or broken.