wtcheck function

Check a vector of weights