Essays on entrepreneurship, productivity, and inequality