Essays on firm heterogeneity and entrepreneurship