checking for existing model in createmodel
checking model name for being a valid C++ class name