Take it back to whoever put the engine in. Doesn't sound like that dealer is the one that installed it as they don't sound capable. Have you tried changing fuel filters and fuel to see if maybe it was bad diesel? It could be trash that is starving the engine and it took a while for it to cake up the filters.