debugged Emulator and MPG score calculation