added min_w_norm to main matlab script and loop to ensure norm is met