put random block in trainer and put a tolerance instead of num of iters
fixed mult of vectors and removed line from comment