consummate the density calculator and fix some problem
fix some string problems