Thanks to all that responded. I upgraded my MPLAB and the errors went away. I also fixed the other things that were pointed out in my code. It all works now. Now onto slowly building up this code/project to the end goal.

Thanks again.