Bug fixes

Norm vector instead of scalar and genweights transforms mean and stdev
matrices