code parallelized

code runs now in a pool ( maybe there is a need to change the pool
number for other machines )