Biogas for cooking and electricity