More unit tests, minor code changes

More unit tests for skewness, kurtosis, winsorised mean, & moments;
some code changes for debugging and added winsorised mean routine.