The Explorer 16/32 Board Demo Code for a PIC24FJ128GA010 PIM was used and comes from:
https://www.microchip.com/DM240001-2