First things first. Get some diagnostics codes and pinpoint the problems. The fuel smoke at start up may just be glow plugs or control problems. The rough running at idle could be wiring, injectors, or IPR or a related part. Take the time to troubleshoot the codes and pinpoint the problems. This will help keep the cost of repairs down and most of all accurate replacement of parts.