updated to match hmf API, and corrected units output