Essays In Heterogeneity In Macroeconomics