This is completely working now.  If you wish to make any of the other parts runnable, just change the issuable array[pn] to True and also make sure commands are issuable in commander.