Reorganize source file for better comprehension.

I'm reordering the wp_test.w file in preparation for more comprehensive
documentation. I've made no other code changes.