Added lngrad option for thermodynamic variables, and added some checks to prevent illegal calling of cross options