New version with many changes.
Problems with particle jumping: fixed