add comments for Scalar type
revert back to float64 from scalar type