use ifNULLelse operator
revert to old switch syntax
vectorise qmixnorm
tidying