sounds like youve got a serious wiring prob there mate.
the poor running could be idle control valve and it sounds like you thermostat sensor is shagged i would try and find out where the wires go and get it sorted if you can smell burning then something is burning trust me.
if you dont know what your doing get an auto electrician but they are pricey