Added density setting instead of mass.  Fixed bug with contact threshold value being too large.