Added Ghost class, getGhost method and events.