separated GetDensity function
updated changelog
documented GetDensity function