Update to code

Included wrapper function, ks test statistic and, concavity test.