nonparametric distribution fit and model comparison scheme using the Kolmogorov-Smirnov statistic and bootstrap resampling