refactor random var and factors
expand readme