Three Essays on the Economics of Contracts in Labor and Corporate Debt Market