added conditional debugging
added serial and local mpi multiplication