Well, a belated reply to the time it was written, and I am sure that you must have got this issue sorted out somehow, but just to let others who may have much the same problem as to their projects know of some good references:
http://www.mit.edu/~junpan/dps.pdf Credit Derivatives Pricing Models: Model, Pricing and Implementation - you could easily get an ebook available on the web