fixed bugs in all-gather HaloManager, updated exampled
updated other examples
fixed memory leak in redistribute_particles method
added more comments