On corporate debt and credit risk