SMS: Treatise on thermodynamics