function of density visualization added
visualization functions improved: architecture a bit changed