Sounds like your on the right track.
I would check all the wiring again. This time note any thing that you do. It could be a faulty connection going into a sensor. or a short midway.
Also, make sure the connections going into your PCM and IDM are tight and look good.