A complete analysis and tweaks tools to optimize the battery performance