Fixed parse.js weirdness.
Added more notes to doc/pseudocode.txt
Restructured everything.