Text this: Essays on credit and default under the presence of collateral