Dynamics of transcription and mRNA export