Pyrolysis, theory and industrial practice