cleaned the code a bit and activated parallelisation where posssible