started to code classes dynamically (THIS VERSION IS NOT WORKING)
Build Classes in basemodel, controlled by dictionaries in specmodel
cleanups