improve broadcast MPI example, remove unused variables