REF: Major refactr/reorganization following eq 18.
DOC: Added module doc strings.