Essays on Financial Contracting