Sounds like a fuel pump. Won't hold pressure on shut down, have to crank awhile for pressure to reach the rails and then it starts when it isn't at full pressure, runs rough till the pressure comes to full and then smooths out. Not saying that's what it is, but I've seen it before.