Working version

With Barnes-Hut and most compatibility measures.