Sweeping improvements to `LinkPrims`

Spacing, varnames, privatization, type signatures, and the like