added diagrams, code, and preliminary papers