Three Essays on Corporate Debt Contracting and Innovation