finished parallel functionality.  Still need to clean up code and add javadocs