Implementation and Optimizing Methane Content in Biogas for the Production of Electricity