Sounds like you might have a faulty, gear position switch, If this fails or becomes unplugged it will think your still in Neutral and limit your RPM to 4000. Check its still plugged in, two wires coming from it, very hard to get to though, it sits back almost under the oil tank (just follow the gear lever). If its still plugged in you will really need someone to plug in a laptop or DDT get them just to put it into gear and see what the shift position is on the screen.