Biogas composition and upgrading to biomethane