finished cleanup of the theory manual. It's not very good, but it's not terrible. I'm going to send it to Sebastian for input.
fixed a few typos