Added number of worker threads configuration and

also added some more gvt calculation stuff. Some of
it is probably just temporary