Title: Essays on heterogeneity, asset pricing and trade