Clean up imports.
Refactored terminators.

Terminators are now text frames.  Create new result code.