crunch code reorg, merge mpi and prime, add worker support for all function calls