Model almost pure.
Refactoring worked, except for the output.
Tests work again, only input filter wrong.
Fixed the error for input nodes.
Detection of non-functioncal contexts.