PBP3.1 does not work with MPLAB X ver 5.10. Charles Leo confirmed this to me. It works with version 5.05 so I had to go back a few versions.
All good now with 5.05
Charles has requested the Microchip look to see why it does not work with the latest release of MPLAB X IDE

John