While the market for credit instruments grew continuously in the decade before 2008, its liquidity has dried up significantly in the current crisis, and investors have become aware of the possible consequences of being exposed to credit risk. In this thesis we address these issues by pricing...