I will implement your code in CCS which is the compiler I am more confident with, since I use it often when developing a PIC based project.
Relevant Skills and Experience
I have used CCS to create programs that interfaces PICs with LM74 (SPI temp. sensor), DS1347 (SPI real time clock), and amtel SPI EEPROMS, so I already have some libraries and programs implemented.
Proposed Milestones
$155 CAD - Re write your code to CCS, commented.
You may have concerns since I don’t have a reputation on this site, if so, ask me for a sample code.