theres factors, if the ltft is off lean or rich you add or take away fuel from the maf file. once the trims are at a happy place if you still have kr you pull some timing in the areas that get kr.

your scanning for gear rpm, speed ltft, stft, timing throttle % boost and kr. with all those things you can see where the kr starts and take timing from that rpm range and up if need be.

you just need to read a manual or two, a few times to get a grip on things. for what you need tho its pretty simple to fix.