And a simple add at the bottom of the List...
Code:
@ Device pic16F877A, HS_OSC, BOD_OFF, PWRT_ON, WDT_ON, PROTECT_OFF
1. You Should also disable the LVP mode, sometime it could do some strange behaviour..

2. Could be interesting to enable the BOD... safety sake.

good luck!