Biobutanol, lignin, electric energy and heat production