Added offset and kurtosis code and tests