Use a timing light to set base timing,
Can u borrow a mates ecu to try?
When it plays up does it rev over 2500rpm (if not its going into limp mode from either a bad sensor or afm etc or the ecu)
Can be a little tricky to diagnose unless u have a car to borrow parts from.