added repeates, iterations and epsion to parameters
send untransposed z to multinomial which will transpose it