Minor refactoring.
Dramatically enhanced comments.