IF97: implemented h(p,s), T(p,s), x(p,s), and x(T,s). Cleaned code base.