Made demos for perf_regression and for perf_classification.
Added tests framework
All functions inside train_model got its own file
Added tests to tests/testthat