Tentatively completed stem.py, stemParse, and outputGen refactoring