added density

Added density and specific gravity including API. The API is real ugly because it involves addition. It works now and I will work on making better logic later.