The thermochemical conversion of biomass into biofuels