refactoring a bit for read- and test- ability
adding test for interpretation view
moving state objects into module
fix module load problem that caused a failing test
some weak tests for interps
changing defs event handler to match new state obj