The Mathematical Theory of Non-Uniform Gases. Second Edition