Refactoring in progress (Scenario terms and Party elements).
Restored Scenario, Party and representation matrices, term parsing.