added executable arg parsing of protocol mode
fixed run script to execute both mpi and dma modes