Stav dette: Statistical mechanics: principles and selected applications