Memory deallocation for ghosts. (pretty early, eh?)

And code cleanup :D