rewritten intro with diagrams and other edits for clarity