Entry, market structure and innovation in a history-friendly model of the evolution of the pharmaceutical industry