Make c++ routine of cooling function easier to be called
add a comment about namespace