Biomethane and hydrogen production from biomass