Refactor to literate style.

Literate programming rules. I just can't yet use it good enough.