Deleted a lot of dead code.
A little more dead code removal.
More dead code.
Factored out method for reading density.