(a) Joinder of offenses. – Two or more offenses may be charged in the same indictment or information in a separate count for each offense if the offenses charged are of the same or similar character or are based on the same act or transaction or on two or more acts or transactions connected together or constituting parts of a common scheme or plan.(b) Joinder of defendants. – Two or more defendants may be charged in the same indictment or information if they are alleged to have participated in the same act or transaction or in the same series of acts or transactions constituting an offense or offenses. Such defendants may be charged in one or more counts together or separately and all of the defendants need not be charged in each count.