preliminary solution

- matrix is created/updated from trainfile (it is possible to use
multiple files to add to the same pool
- added trainfile