Add switch case to init_par and use Enum isntead of strings.
Add switch case to init_par and use Enum isntead of strings.