I have checked the connector for the detonation sensor and it seems ok. I've also checked the alternator connections and they also seem fine. I doubt that the alternator has been changed, I only have the car about 6 weeks so I couldn't be 100% sure but the car only has 23,000kms on it so I wouldn't see any reason why it would have been changed. Its a GPX alternator tho, as it has the 4 pin connector.
I used the ground pin 1 on the diacnostic connector trick to check the code and it is definatly flashing out the code 31.
The reason why its affecting the revs is because the ecu is in safe mode.
I've sent ricerocket an E-mail so hopefully he'll get back to me tomorrow. I called Tynans for the laugh and they quoted me €190 + vat
just for the sensor.