Return history as data.table for cross validation + bring back linear model dump to master + other fixes