remove intermediate streams from plaintext output. added comments, fixed existing ones
Added header comments to uncommented functions
changed ancestors param to ancestor_idents
Improved comments on local function definitions. Removed type ascriptions from formals in order
to conform with project standards.