Add distance functions
Fix and improve KS test functions
Add module and template for new hypothesis page