make the matrix to float64
add comments