Title: Three essays on contracting and default risk