Added a few codes to StandardModel.cpp for checking invalid model flags.