Refactor to literate style.

Literate programming rules. I just can't yet use it good enough.

Also a problem is partially solved. Maybe we'll even stop at this point.