added KS test
added simulation for ks