Essays on Nonparametric Identification and Estimation of Contracts