Heat and electricity generation with biofuels and biomass produced