fix particle bugs, add network synchronization and update the ranger example