make FFTALGO default, add MPI initialization, move allocation of sumsquare pointer to precalculate function