Fix bad rst link refs

Also a couple formatting fixes having to do with line length.