Setting Idle speed / Stallingin gear

Check the timing. A stock 318 should idle lower than 1000 rpm. Check the vacuum. Might have a vacuum leak somewhere.