Essays On Contract Theory And Institution Design