Modelling Single-name and Multi-name Credit Derivatives