(1) Any number of persons who are alleged may be joined in the same indictment and tried together or separately.(a) to be parties within the meaning of the Code to the same crime (notwithstanding that some other party or parties to that crime is or are not included in the indictment or is or are not amenable to justice); or(b) to have committed different crimes arising substantially out of the same facts or closely related facts (2) Any number of persons who are alleged to have committed perjury or false swearing may be joined in the same indictment and tried together or separately if the statements alleged to be false are alleged to have been made in the same proceedings and before the same tribunal.(3) Any party to whom subsection (1) relates who is alleged to have instigated, aided, or abetted the commission of a crime may be convicted upon a count charging him with having committed the crime, or upon a count charging him with having instigated, aided, or abetted, as the case may be, the commission thereof.