Is the inlet manifold all gunged up so it can't get air in? Black smoke is excess fuel.
P1664, P0251 are common codes, to really test it properly it needs the leak off tests doing on the injectors, and fuel pressure tests on live data to check the pump can produce full pressure.
Has the fuel filter been changed recently, have seen people put pumps on these and all they need is a filter
P0180 is fuel temp sensor circuit fault..