for starters here you go.
https://www.pakwheels.com/forums/engine-transmission-powertrain/185192-engine-optimization-corolla-2-0d-6
Now for timing the pump,
steps
1 - undo timing cover
2 - remove or loosen high pressure pipes from pump (so it can rotate easily)
3 - rotate engine so you are exactly at TDC1 (check mark on crank pulley aligning to timing cover
4 - verify the camshaft timing mark aligns
5 - verify pump timing mark aligns then loosen the pump mounting bolts.
6 - insert screwdriver into pump cold start device and lock/hold it in hot/released condition (default is advance - rotated is normal)
7 - remove bolt and insert adapter, pin and gauge into the high pressure head in the pump (preload the gauge about 2mm)
8 - rotate engine backwards very slowly till the gauge needle stops
9 - rotate the gauge face to zero
10 - rotate the engine clockwise till the engine timing marks line up
11 - read the gauge face - it should be 0.85 or 0.90mm - if not then rotate the pump gently to get it correct.
12 - tighten pump and make sure the gauge does not move when you tighten it - redo the procedure if the reading is messed up while tightening the pump.
13 - remove tool and install the bolt
install high pressure pipes, keeping them loose at the injector body - try to start the engine, wait till fuel dribbles out the pipes at the injectors then tighten the nuts.
Install belt cover, do a general checkup and start the engine.