Implement first steps for learning.
Added functions to create a model based on settings.
More flexible handling if different model types.
Implement learning of models.