Fixing some bug in the Controller
Improving the model config file

Using a static attribute instead of a global variable.