Major refactoring to allow code generation of differnt interpolands. Design stub complete.
Continued refactoring.