Doc (poorly; needs a good edit and takeover with someone who knows tex)

Also, I realized that ks.test uses its second argument as the reference distribution
So though it doesn't change the results, I swapped the order for completeness.