Adding smooth tests and entropy tests based on relative distribution. Replacing mean() with fastmean().