add apps.ks.subset() to extract part of pre-calc Ks values; allow optional pepfile input in apps.ks.prepare()