Finished writing documentation for primal-dual

Not perfect at the moment, but legible.