Essays in Firm Behavior, Innovation, and Social Learning