Gravar-mail: Modelling sequences and temporal networks with dynamic community structures