A PROGRAM FOR BARYON GENERATION AND ITS APPLICATIONS TO BARYON FRAGMENTATION IN DIS Patrik Ed\'en In an earlier paper, we discuss the ``popcorn'' model for baryon production in quark and gluon jets, and present an improved model (which we call Modified Popcorn Scenarium, MOPS). In this paper we give a manual to the MC program based on MOPS, and also discuss the application of the model to baryon fragmentation, i.e. fragmentation of strings originally contaning a diquark. Model predictions for baryon production in DIS are compared with data. LU TP 96-29 October 1996