Text this: Credit valuation adjustments with application to credit default swaps