Fixed some typos and bugs, wrote some more text, generally cleaning things up.