Modified Density Calculator to be More suitable for chitin

This included detecting the slab height via slab_top.pl and making the
density calulation take into accout both sides of the slab so you get a
single sided profile representing both halves.