Essays on Corporate and Household Finance