Two essays on financial contracting with imperfect information