add 1D grid support to main and example codes, remove MC-specific ghostswap