The 10-pin powers markers in some locomotives, as well as that serial data connection. The six-pin is a factory programming jumper for the PIC debugger, you won't be using that one. I'd fool around with some LED's and a 1K series resistor, you may be able to dope out which ones are LED drives.