fixed parallelisation for windows

error in namespace
code split into model and predict