rewrote section on diffusion, sampling rules and branching. next: trial wave function