add K-S test for model fitting
add K-S test for model fitting