Fix error in types matching - need to convert toList first
Map model names and enum names to scala class names
Sort responses by code
Better error handling