final versions of serial.c serial-test.c and mpi.c, serial-test should be used only to decode, it is exactly the same as serial.c but generates another file