fixed minor error

Generation of the random seed should have been outside of the for loop
over chains.
updated from 'matlabpool' to 'parpool' syntax

matlabpool is being phased out in favour of parpool