initial commit for object of class model
- train types handled with R6
- spike for a model class added
- code reorganised
- doc update