Add and document eachLine document-iteration method

Closes #1204