Tc code; temperature code for Lake Shore and bug fixes