The MACRO Model (version 3.1). Technical description and sample simulations.