Formulation and manufacturing of batteries