PIC-GSM

Hi I would like to use the PIC GSM kit to send and receive SMS based on a state machine. In this context I was looking through the code that is provided but i dont find any code, only hex files are provided. On going through the OLIMEX doc provided a reference to AN833 is provided. I went through the code provided in an833, but that still doesnt answer my question as to where i can incorporate my state machine that sends and receives SMS based on certain conditions.

Thanks in advance,

Surya