Fixed bug where generator would not generate models that were not overridden.
Simplified the cofig mm, removed unused bits
Fixed some bugs re. linking.