Issue 9 - add repeats parameter to pulse function
Added repeats switch to control script