A vacuum leak can cause the weird engine idle.

The u-shaped vacuum line part is likely a dealership item, but just get some vacuum hose and make one because thats cheaper.

Doulbe check that everything is plugged in and where it should be. And don't forget to do an oil change right after you get the car running, you don't want to go far on that oil as is might have coolant in it.