added possibility to use passive ghosts, added example analyzer