Essays on (Frictions in) Corporate Finance