Fork of kGen3.py
Percentile filter (not quite a proportion filter yet).
Split out the proportion and percentile into two different functions.