The Interleaf property determines how many frames later the dots presented in one frame reappear on the screen and it should be set to 3. My implementation of the random dot motion stimuli is based on the papers of Michael Shadlen's group (a.k.a. the Movshon/Newsome version). You can find the detailed descriptions about it in any of his papers, including
this one. For the different algorithms of random dot motion stimuli, see
this paper.
At a lower coherence level, more dots are moved to random locations, as you know from my code already. This creates an ambiguous percept and makes it difficult for you to tell which direction the dots are really moving to. It is the purpose of using the random dot motion stimuli, so I do not understand what you want to do.