Essays in Firm Heterogeneity and Productivity