Ok, so you are new to gleaning info from a data sheet. They can be overwhelming at times. But things like connecting power should be pretty straight forward. That is why I mentioned the data sheet.

Code:
ADCON1 = 15               ' Set all I/Os to Digital      
CMCON = 7                 ' Disable Comparators
Is what you will need to add near the beginning of your code.

BTW, who do I address suggestions for improving PIC Basic Pro to?
It is obvious you are new to PBP so how can you say it needs improvement?