for fixing idle , clean its ISCV
for gear issue...adjust TPS 1st and see if it helps...
it must be ECT type gear.. a sticky solenoid can also cause it but that's after ruling out other things 1st
adjust TPS as per FSM values. its adjustable type....all you need is DMM/ FSM Values to do it