Fixed a few typos and reworked the pivoting section.