Added fit diagnostic tools to the model wrapper.
Added support for choosing maximum number of threads.
High level fit diagnostics tools.
More high level fit diagnostics tools.