Removing ranked ks test --- redundant. Also cleaning up some code.
Merge branch 'temp' into randomization-distribution