License header; whitespace/comment tweaks.
Rework the order of some parts; write philosophical justification.