The P1316 means there are codes stored in the IDM. You have to run an injector buzz test to get the IDM to cough up the codes. The P1247 is a boost code. That explains your loss of power. You need to do some testing to see if your turbo is the issue or a massive leak. Or even a MAP sensor / hose.