final code with all parallel code

this class has a lot of experimental methods in it. I pruposely did not
clean it up.