gh-8: Refactored line generators in preparation for block support.
gh-8: Refactors envGen to be significantly faster with kr triggers.